Carbon


MPExitCriticalRegion

Header: Multiprocessing.h Carbon status: Supported

Exits a critical region.

OSStatus MPExitCriticalRegion (
    MPCriticalRegionID criticalRegion
);
criticalRegion

The ID of the critical region you want to exit.

function result

A result code. If the task does not own the critical region specified by criticalRegion, MPExitCriticalRegion returns kMPInsufficientResourcesErr.

DISCUSSION

This function decrements the use count of the critical region object. When the use count reaches zero, ownership of the critical region object is released (which allows another task to use the critical region).

Also see the function MPEnterCriticalRegion.

VERSION NOTES

Introduced with Multiprocessing Services 1.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)